﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZK.YCGLRD_TransManage.Models
{
    /// <summary>
    /// 返回数据的基类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ReceiveDataBase<T>
    {
        private T _data;


        public T data
        {
            get
            {
                return _data;
            }
            set
            {
                if (value != null)
                {
                    _data = value;
                }

            }
        }
        /// <summary>
        /// 返回信息 当success错误时 返回错误信息 ,
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 请求成功失败标识 true 成功 false 失败
        /// </summary>
        public bool success { get; set; }
        /// <summary>
        /// 分页总数 默认0
        /// </summary>
        public int total { get; set; }


    }
}
